from api import mysql
from peewee import *


database = MySQLDatabase('b-video-start', **{'charset': 'utf8', 'sql_mode': 'PIPES_AS_CONCAT', 'use_unicode': True, 'host': 'localhost', 'port': 3306, 'user': 'root', 'password': '123456'})

class UnknownField(object):
    def __init__(self, *_, **__): pass

class BaseModel(Model):
    class Meta:
        database = mysql

class RankAuthorUpinformation(BaseModel):
    up_name = CharField(column_name='name', null=True)
    up_img = CharField(column_name='face', null=True)
    up_follower = CharField(column_name='follower', null=True)
    up_following = CharField(column_name='following', null=True)
    up_view = CharField(column_name='view', null=True)
    up_likes = CharField(column_name='likes', null=True)

    class Meta:
        table_name = 'new_table'
        primary_key = False

